﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace TCKQKL.Service.DataContract
{
    [DataContract()]
    public class TransDataModel
    {
        private decimal _id;
        [System.Xml.Serialization.XmlElementAttribute(ElementName = "Id", Order = 1, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "Id", Order = 1)]
        public decimal Id
        {
            get { return _id; }
            set { _id = value; }
        }
        private DateTime _date;
        [System.Xml.Serialization.XmlElementAttribute(ElementName = "Date", Order = 2, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "Date", Order = 2)]
        public System.DateTime Date
        {
            get { return _date; }
            set { _date = value; }
        }
        private string _transText;
        [System.Xml.Serialization.XmlElementAttribute(ElementName = "TransText", Order = 3, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "TransText", Order = 3)]
        public string TransText
        {
            get { return _transText; }
            set { _transText = value; }
        }
        private string _code;
        [System.Xml.Serialization.XmlElementAttribute(ElementName = "Code", Order = 4, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "Code", Order = 4)]
        public string Code
        {
            get { return _code; }
            set { _code = value; }
        }
        private decimal _increaseQtty;
        [System.Xml.Serialization.XmlElementAttribute(ElementName = "IncreaseQtty", Order = 5, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "IncreaseQtty", Order = 5)]
        public decimal IncreaseQtty
        {
            get { return _increaseQtty; }
            set { _increaseQtty = value; }
        }
        private decimal _increaseAmount;
        [System.Xml.Serialization.XmlElementAttribute(ElementName = "IncreaseAmount", Order = 6, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "IncreaseAmount", Order = 6)]
        public decimal IncreaseAmount
        {
            get { return _increaseAmount; }
            set { _increaseAmount = value; }
        }
        private decimal _decreaseQtty;
        [System.Xml.Serialization.XmlElementAttribute(ElementName = "DecreaseQtty", Order = 7, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "DecreaseQtty", Order = 7)]
        public decimal DecreaseQtty
        {
            get { return _decreaseQtty; }
            set { _decreaseQtty = value; }
        }
        private decimal _decreaseAmount;
        [System.Xml.Serialization.XmlElementAttribute(ElementName = "DecreaseAmount", Order = 8, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "DecreaseAmount", Order = 8)]
        public decimal DecreaseAmount
        {
            get { return _decreaseAmount; }
            set { _decreaseAmount = value; }
        }
        private string _note;
        [System.Xml.Serialization.XmlElementAttribute(ElementName = "Note", Order = 9, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "Note", Order = 9)]
        public string Note
        {
            get { return _note; }
            set { _note = value; }
        }
        public TransDataModel()
        { }
        public TransDataModel(decimal id, DateTime date, string text, string code, decimal increaseQtty, decimal increaseAmount, decimal decreaseQtty, decimal decreaseAmount, string note)
        {
            this._id = id;
            this._date = date;
            this._code = code;
            this._increaseAmount = increaseAmount;
            this._increaseQtty = increaseQtty;
            this._decreaseAmount = decreaseAmount;
            this._decreaseQtty = decreaseQtty;
            this._note = note;
            this._transText = text;
        } 
    }
}
